import torch
from torch.utils.data import Dataset
#Dataloader is a class to help us loading data in PyTorch
from torch.utils.data import DataLoader

#DiabetesDataset is inherited from abstract class Dataset
class DiabetesDataset(Dataset):
    def __init__(self):
        pass
    # 能根据下标获取item
    def __getitem__(self, index):
        pass
    # 能获取数据集长度 即可len(model)
    def __len__(self):
        pass

dataset = DiabetesDataset()

train_loader = DataLoader(dataset = dataset,
                          batch_size=32,#小批量容量
                          shuffle=True,#是否要打乱
                          num_workers=2)#读取的时候的线程核心数
